﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Final_Prototype_UsingDev_QuanLy_071012
{
    public partial class Form_Custom_Management_ContactInfo : Form
    {
        public Form_Custom_Management_ContactInfo()
        {
            InitializeComponent();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            if (txtContactPerson.Text == "")
            {

                lblCheckContactPerson.Visible = true;
                btnAddNewContact.Enabled = false;
            }
            else
            {

                lblCheckContactPerson.Visible = false;
                btnAddNewContact.Enabled = true;
            };
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you want to quit?", "Warning", MessageBoxButtons.YesNo);
            if (result == DialogResult.Yes)
            {
                this.Close();
            }
        }
    }
}
